package yanglei.day0109.travel.service;


import yanglei.day0109.travel.dao.ScenicSpotDao;
import yanglei.day0109.travel.po.ScenicSpot;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;

/**
 * @Author: YangLei
 * @CreateTime: 2023-01-08  15:25
 * @Description: TODO
 */
public class ScenicSpotMgr {

    private Logger logger = Logger.getLogger(String.valueOf(ScenicSpotMgr.class));

    public void showScenicSpot(ScenicSpotDao scenicSpotDao){
        Map<String, Object> map = new HashMap<>();
        System.out.println("显示景点");
        List<ScenicSpot> scenicSpotList = scenicSpotDao.queryScenicSpotByType(map);
        System.out.println("景点名称:");
        for (ScenicSpot spot:scenicSpotList){
            System.out.println(spot.getSsName());
        }
    }

}
